﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Text;

namespace DAL.DataProvider
{
    public class DataAccess
    {
        public static SqlConnection GetConnection()
        {
            SqlConnection con = new SqlConnection(@"Data Source=.\SQLEXPRESS;Initial Catalog=QLBanHang;Integrated Security=True");
            if (con.State == ConnectionState.Closed)
            {
                con.Open();
                return con;
            }
            else
                return con;
        }
    }
}
